package com.lbb.shard.jdbc.demo.servicer;

import com.lbb.shard.jdbc.demo.mapper.OrderMapper;
import com.lbb.shard.jdbc.demo.pojo.Order;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class OrderService {

    @Resource
    public OrderMapper orderMapper;

   public List<Order> findByUserId(Integer orderId){
        return orderMapper.findByUserId(orderId);
    }


    public void SaveOrder(Order order){
        orderMapper.saveOder(order);
    }
}
